<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="/weixi/Public/css/bootstrap.min.css">
    <link rel="stylesheet" href="/weixi/Public/css/nivo-slider.css" type="text/css">
    <link rel="stylesheet" href="/weixi/Public/css/themes/bar/bar.css" type="text/css">
    <link rel="stylesheet" href="/weixi/Public/css/themes/dark/dark.css" type="text/css">
    <link rel="stylesheet" href="/weixi/Public/css/themes/default/default.css" type="text/css">
    <link rel="stylesheet" href="/weixi/Public/css/themes/light/light.css" type="text/css">
    <title>分类</title>
    <style>
        *{
            box-sizing: border-box;     /*从IE8开始兼容*/
            text-size-adjust:none;
        }
        img{
            max-width: 100%;
        }
        ul,li{
            list-style: none;margin: 0;padding:0;
        }
        html,body, .container{
            height:100%;margin:0;padding:0;
        }
        .container{
            max-width: 640px;min-width: 320px;margin: auto;
        }
        header{
            height:8%;background: #c53b13;display:flex;
        }
        section{
            height:92%;width: 100%;overflow: scroll;
        }
        .nivoSlider img{
            width: 100%;
        }
        .clear{
            clear:both;
        }

        section a:link{
            color: #000000;text-decoration:none;font-size:14px;
        }
        section a:visited {
            color: #000000;text-decoration:none;font-size:14px;
        }
        section a:hover {
            color: #3f7dc4;font-size:14px;
        }
    </style>
    <script src="/weixi/Public/js/jquery-1.11.1.min.js"></script>
    <script src="/weixi/Public/js/bootstrap.min.js"></script>
    <script src="/weixi/Public/js/jquery.nivo.slider.js" type="text/javascript" charset="UTF-8" ></script>
    <script type="text/javascript">
        $(function () {
            $(".nivoSlider").nivoSlider();
            $("#return").click(function () {
                window.history.back(-1);
            })
        })
    </script>
</head>
<body>
<div class="container">
    <header>
        <div style="width: 16%;height: 100%;display: flex" id="return"><span class="glyphicon glyphicon-chevron-left" style="color: white;display: inline-block;margin: auto;font-size: 20px"></span></div>
        <div style="width: 70%;height: 100%;color: white;display: flex"><sapn style="display: inline-block;margin: auto;font-size: 20px">所有分类页</sapn></div>
    </header>
    <section>
        <?php if(is_array($name)): foreach($name as $key=>$names): ?><a href="<?php echo U('Classify/waref');?>?id=<?php echo ($names["idty"]); ?>"><div style="width: 100%;height: 60px;display: flex;border-bottom:1px #e2e2e2 solid;">
            <div style="width: 15%;padding-left: 10px"><img src="/weixi/Public/img/分类.png" style="margin: 20%;width: 40px "></div>
            <div style="width: 70%;"><span style="display: inline-block;width: 100%;line-height: 60px;margin-left: 15px;font-size: 16px;"><?php echo ($names["leibiename"]); ?></span></div>
            <div style="width: 15%;"><img src="/weixi/Public/img/right.png" style="width: 10px;margin: 35%"></div>
        </div></a><?php endforeach; endif; ?>
    </section>
</div>
</body>
</html>